//
//  mapping.hpp
//  NLCEQ_mixed
//
//  Created by Duong Ngo on 8/13/16.
//  Copyright © 2016 Duong Ngo. All rights reserved.
//

#ifndef mapping_hpp
#define mapping_hpp

#include <stdio.h>
#include <vector>
#include <map>

#include "IpTNLP.hpp"
#include "global.hpp"

using namespace Ipopt;


//-----------------------------------------------------------------------------
// Find the map f: name of variables --> its position
//-----------------------------------------------------------------------------
void find_variable_s (const Number* x, variables& s);

//-----------------------------------------------------------------------------
// Find the map f: name of variables --> its position
//-----------------------------------------------------------------------------
void find_map (std::map<std::string,int>& f);

#endif /* mapping_hpp */
